package com.woniuxy.vouchers;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.listener.RedisMessageListenerContainer;

@SpringBootApplication(scanBasePackages ={"com.woniuxy.vouchers", "com.woniuxy.commons.config"})
@EnableFeignClients(basePackages = "com.woniuxy.commons.service")
public class VouchersApplication {


//    @Bean
//    public RedisMessageListenerContainer redisMessageListenerContainer(RedisConnectionFactory connectionFactory) {
//        // 创建容器
//        RedisMessageListenerContainer container = new RedisMessageListenerContainer();
//        // 设置连接工厂
//        container.setConnectionFactory(connectionFactory);
//        return container;
//    }

    public static void main(String[] args) {
        SpringApplication.run(VouchersApplication.class, args);
    }

}
